package com.campus.schedule.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.campus.common.mybatis.entity.LongIdBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单收益分账表
 * </p>
 *
 * @author ZhaoYuJie
 * @since 2025-07-04
 */
@Getter
@Setter
@TableName("order_profit_sharing")
@ApiModel(value = "OrderProfitSharing对象", description = "订单收益分账表")
public class OrderProfitSharing extends LongIdBaseEntity<OrderProfitSharing> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单ID")
    @TableField("order_id")
    private String orderId;

    @ApiModelProperty("子商户号")
    @TableField("sub_mchid")
    private String subMchid;

    @ApiModelProperty("微信支付订单号")
    @TableField("transaction_id")
    private String transactionId;

    @ApiModelProperty("微信分账单号")
    @TableField("wechat_order_id")
    private String wechatOrderId;

    @ApiModelProperty("分账单状态：PROCESSING-处理中，FINISHED-分账完成")
    @TableField("state")
    private String state;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("create_time")
    private LocalDateTime updateTime;

    @Override
    public Serializable pkVal() {
        return null;
    }
}
